package ar.edu.itba.pod.legajo45129.simul.communication.factory;

import ar.edu.itba.pod.simul.communication.payload.ResourceRequestPayload;
import ar.edu.itba.pod.simul.market.Resource;

public class ResourceRequestPayloadImpl implements ResourceRequestPayload {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3329998597140501894L;
	
	private Resource resource;
	private int amount;

	public ResourceRequestPayloadImpl(Resource resource, int amount) {
		this.resource = resource;
		this.amount = amount;
	}

	@Override
	public int getAmountRequested() {
		return amount;
	}

	@Override
	public Resource getResource() {
		return resource;
	}

}
